package com.yootk.bean.vo.bean;

import com.yootk.bean.vo.Message;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class YootkProfile {
    @Bean
    @Profile("dev")
    public Message devMessage(){
        Message message = new Message() ;
        message.setPath("dev/yoot.com");
        return message ;
    }
    @Bean
    @Profile("test")
    public Message testMessage(){
        Message message = new Message() ;
        message.setPath("test/yoot.com");
        return message ;
    }
    @Bean
    @Profile("product")
    public Message productMessage(){
        Message message = new Message() ;
        message.setPath("product/yoot.com");
        return message ;
    }
}
